package cn.silver.module.system.service.impl;

import cn.silver.framework.mybatis.service.impl.BaseServiceImpl;
import cn.silver.module.system.domain.SysUserPost;
import cn.silver.module.system.mapper.SysUserPostMapper;
import cn.silver.module.system.bean.UserPostBean;
import cn.silver.module.system.param.PostParam;
import cn.silver.module.system.service.ISysUserPostService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserPostServiceImpl extends BaseServiceImpl<SysUserPostMapper, SysUserPost, PostParam, UserPostBean> implements ISysUserPostService {

    @Override
    public List<UserPostBean> selectPostGroup(String code) {
        return this.baseMapper.selectVoList(new LambdaQueryWrapper<SysUserPost>().eq(SysUserPost::getUserId, code));
    }
}
